﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace RayDen.SceneLab.Controllers
{
    public class FormControllerBase
    {
        protected virtual Form owner { get; set; }

        public FormControllerBase(Form owner)
        {
            this.owner = owner;
        }
    }


    public class FormControllerBase<TForm> : FormControllerBase
        where TForm:Form
    {
        protected TForm form;

        protected override Form owner
        {
            get { return form; }
            set { this.form = (TForm)value; }
        }

        public FormControllerBase(Form owner) : base(owner)
        {
        }
    }
}
